package com.bkhc.common.util.response;

/**
 * 状态码
 */
public enum ResultCode {

    /*
   请求返回状态码和说明信息
    */
    SUCCESS(200, "成功"),
    NO_ACOUNT(201, "账号不存在"),
    BAD_REQUEST(400, "参数或者语法不对"),
    UNAUTHORIZED(401, "认证失败"),
    NORESOURCE(407, "不能操作该资源"),
    LOGIN_ERROR(401, "登陆失败，用户名或密码无效"),
    FORBIDDEN(403, "无权访问"),
    NOT_FOUND(404, "请求的资源不存在"),
    OPERATE_ERROR(405, "操作失败，请求操作的资源不存在"),
    TIME_OUT(408, "请求超时"),
    ISEXIT_RESURCE(202, "资源已经存在"),
    SERVER_ERROR(500, "服务器内部错误"),
    NO_ORDER_DATA(409,"订单参数不对"),
    NO_PARTNER_EMP(410,"需要设置伙伴管理员"),
    NO_HANDLE(412,"服务不存在"),
    NO_AUTH(203,"您未有该系统的权限，请联系管理员"),
    NO_LOGIN(204,"你还未登录"),
    ERROR_PASSWORD(205,"密码不对");
    ;
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}